import React, { Component } from 'react'
import { Grid } from 'antd-mobile'

// mock数据
const data = Array.from(new Array(9)).map((_val, i) => ({
  icon: 'https://gw.alipayobjects.com/zos/rmsportal/nywPmnTAvTmLusPxHPSu.png',
  text: `name${i}`
}))

class Hotcate extends Component {
  render() {
    return (
      <div className="home-hotcate-container">
        <div className="title">热门分类</div>
        <Grid hasLine={false} data={data} activeStyle={false} />
      </div>
    )
  }
}

export default Hotcate
